home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 20
/
Cream of the Crop 20 (Terry Blount) (1996).iso
/
program
/
n_b_v203.zip
/
REMOVE.DMO
< prev
next >
Wrap
Text File
|
1996-07-04
|
2KB
|
51 lines
$if 0
┌──────────────────────────╖ PowerBASIC v3.20
┌──┤ DASoft ╟──────────────────────┬──────────────────╖
│ ├──────────────────────────╢ Copyright 1995 │ DATE: 1995-10-01 ╟─╖
│ │ FILE NAME REMOVE .DMO ║ by ╘════════════════─ ║ ║
│ │ ║ Don Schullian, Jr. ║ ║
│ ╘══════════════════════════╝ ║ ║
│ A license is hereby granted to the holder to use this source code in ║ ║
│ any program, commercial or otherwise, without receiving the express ║ ║
│ permission of the copyright holder and without paying any royalties, ║ ║
│ as long as this code is not distributed in any compilable format. ║ ║
│ IE: source code files, PowerBASIC Unit files, and printed listings ║ ║
╘═╤═════════════════════════════════════════════════════════════════════╝ ║
│ .................................... ║
╘═══════════════════════════════════════════════════════════════════════╝
$endif
'.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°
' ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °
$INCLUDE "DAS-NB01.INC"
COLOR 7, 0
CLS
? "┌────────────────────────────────────────────────────────────
? "│ fREMOVEmid$( ANY, MidPos%, HowMany% )
? "├────────────────────────────────────────────────────────────────
? "│ Just like the sign says... it removes a MID$ from an existing
? "│ string.
? "└─────────────────────────────────────────────────────────────────────────
MAP V$$ * 10
V$$ = "1234567890"
PRINT "SHOULD BE: 1567890<<"
PRINT "─────────> "; fREMOVEmid$( V$$, 2, 3 ); "<<"
PRINT
PRINT "SHOULD BE: 1234567890<<"
PRINT "─────────> "; fREMOVEmid$( V$$, 11, 3 ); "<<"
PRINT
PRINT "SHOULD BE: <<"
PRINT "─────────> "; fREMOVEmid$( V$$, 1, 18 ); "<<"
PRINT
PRINT "SHOULD BE: 90<<"
PRINT "─────────> "; fREMOVEmid$( V$$, 1, 8 ); "<<"
PRINT
PRINT "SHOULD BE: 234567890 <<"
V$$ = fREMOVEmid$( V$$, 1, 1 )
PRINT "─────────> "; V$$; "<<"